﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class View_WMG_WMG001_Summary : ViewMatrix
{
    protected void Page_Load(object sender, EventArgs e)
    {
        criteriaList = new string[] { "Criteria"};
        serviceName = "MISAPP.Classify.Service.Service_WMG001";
        //btn2Excel.PageParameter = "method=GetSummaryData&xls=CIB004&service=Service_CIB004";

        if (!IsPostBack)
        {
            getData();
        }        
    }

    protected void getData()
    {
        System.Data.DataTable dt = GetDataFromSerevice("GetSummaryData");
        CLB_Summary.PageSize = GetGridViewPageSize();
        CLB_Summary.SetData(dt, new string[] { });
    }
    protected void CLB_Summary_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        getData();
    }

    protected void btn2Excel_Click(object sender, EventArgs e)
    {
        serviceName = "MISAPP.Classify.Service.Service_WMG001";
        criteriaList = new string[] { "Criteria" };

        FillToSession();

        string  pageParameter;
        pageParameter = "method=GetSummaryData&xls=WMG001&service=Service_WMG001";
        //strPage = string.Format("../GV2XLS.aspx?{0}", pageParameter);

        btn2Excel.PreviousPage = "../GV2XLS.aspx";
        btn2Excel.PageParameter = pageParameter;
        //Server.Transfer(strPage);
        //FillToSession();
    }
   
}
